<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0,user-scalable=no,maximum-scal=1.0,">
    <title>京东</title>
    <!-- css初始化 -->
    <link rel="stylesheet" href="css/normalize.css">
    <!-- 首页css -->
    <link rel="stylesheet" href="css/index.css">
</head>

<body>
    <!-- 顶部模块采用固定定位 -->
    <header class="app">
        <ul>
            <li class="close-app"><img src="images/close.png" alt=""></li>
            <li><img src="images/logo.png" alt=""></li>
            <li>打开京东App，购物更轻松</li>
            <li>立即打开</li>
        </ul>
    </header>
    <!-- 点击隐藏app模块 -->
    <!-- 移动到下方时隐藏app模块 -->
    <script>
        var closeApp = document.querySelector('.close-app');
        var close = function() {
            var app = document.querySelector('.app');
            app.style.display = 'none';
            var search = document.querySelector('.search-wrap');
            search.style.marginTop = '0';
            var focus = document.querySelector('.main-focus');
            focus.style.marginTop = '0';
        };
        closeApp.addEventListener('touchstart', close);
    </script>
    <!-- 搜索模块 -->
    <div class="search-wrap">
        <div class="search-btn"></div>
        <div class="search">
            <div class="jd-icon"></div>
            <div class="spirit-fdj"></div>
        </div>
        <div class="search-login">登录
        </div>
    </div>
    <!-- 主题内容部分 -->
    <section class="main-content">
        <!-- 焦点图 -->
        <div class="main-focus"><img src="upload/banner.dpg" alt=""></div>
        <!-- 包含三个图片链接的品牌banner -->
        <div class="brand">
            <div>
                <a href="#"><img src="upload/pic11.dpg" alt=""></a>
            </div>
            <div>
                <a href="#"><img src="upload/pic22.dpg" alt=""></a>
            </div>
            <div>
                <a href="#"><img src="upload/pic33.dpg" alt=""></a>
            </div>

        </div>
        <div class="nav clearfix">
            <!-- 因为移动端的导航栏比较简单，这里使用a标签 -->
            <a href="#"><img src="upload/nav1.webp" alt="">
                <span>京东超市</span></a>
            <a href="#"><img src="upload/nav2.webp" alt="">
                <span>全球购</span></a>
            <a href="#"><img src="upload/nav3.webp" alt="">
                <span>京东服饰</span></a>
            <a href="#"><img src="upload/nav1.webp" alt="">
                <span>京东超市</span></a>
            <a href="#"><img src="upload/nav2.webp" alt="">
                <span>全球购</span></a>
            <a href="#"><img src="upload/nav3.webp" alt="">
                <span>京东服饰</span></a>
            <a href="#"><img src="upload/nav1.webp" alt="">
                <span>京东超市</span></a>
            <a href="#"><img src="upload/nav2.webp" alt="">
                <span>全球购</span></a>
            <a href="#"><img src="upload/nav3.webp" alt="">
                <span>京东服饰</span></a>
            <a href="#"><img src="upload/nav1.webp" alt="">
                <span>京东超市</span></a>
        </div>
        <!-- 新闻快报模块 -->
        <div class="news clearfix">
            <a href="#"><img src="upload/new1.dpg" alt=""></a>
            <a href="#"><img src="upload/new2.dpg" alt=""></a>
            <a href="#"><img src="upload/new3.dpg" alt=""></a>
        </div>
    </section>

</body>

</html>